﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ThuChi.ThongTinTaiKhoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        DataSourceID="LinqDataSourceTaiKhoan" Height="50px" Width="250px" 
        BorderStyle="Solid" BorderWidth="2px" CellPadding="4" ForeColor="#333333" 
        GridLines="None" HeaderText="Thông tin tài khoản" HorizontalAlign="Left">
        <AlternatingRowStyle BackColor="White" ForeColor="Black" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <EditRowStyle BackColor="#999999" />
        <FieldHeaderStyle BackColor="#E9ECF1" BorderStyle="Solid" BorderWidth="1px" 
            Font-Bold="True" HorizontalAlign="Left" VerticalAlign="Middle" />
        <Fields>
            <asp:BoundField DataField="TenDangNhap" HeaderText="Tên đăng nhập" 
                ReadOnly="True" SortExpression="TenDangNhap">
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:BoundField>
            <asp:BoundField DataField="TenDayDu" HeaderText="Tên đầy đủ" ReadOnly="True" 
                SortExpression="TenDayDu" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:BoundField>
            <asp:DynamicField DataField="Quyen" HeaderText="Quyền" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" VerticalAlign="Middle" Width="100%" />
            </asp:DynamicField>
            <asp:CheckBoxField DataField="TinhTrang" HeaderText="Kích hoạt" ReadOnly="True" 
                SortExpression="TinhTrang" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:CheckBoxField>
            <asp:BoundField DataField="Ton" HeaderText="Tài khoản có" ReadOnly="True" 
                SortExpression="Ton" DataFormatString="{0:N0}" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:BoundField>
            <asp:BoundField DataField="TongThu" DataFormatString="{0:N0}" 
                HeaderText="Tổng thu" ReadOnly="True" SortExpression="TongThu">
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="TongChi" DataFormatString="{0:N0}" 
                HeaderText="Tổng chi" ReadOnly="True" SortExpression="TongChi">
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="1005px" Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="SoPhieuThu" HeaderText="Số phiếu thu" 
                ReadOnly="True" SortExpression="SoPhieuThu" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:BoundField>
            <asp:BoundField DataField="SoPhieuChi" HeaderText="Số phiếu chi" 
                ReadOnly="True" SortExpression="SoPhieuChi" >
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Width="100%" Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" />
            </asp:BoundField>
            <asp:BoundField DataField="NgayTao" HeaderText="Ngày tạo" ReadOnly="True" 
                SortExpression="NgayTao" DataFormatString="{0:dd-MM-yyyy h:mm tt}">
            <HeaderStyle BorderStyle="Solid" HorizontalAlign="Left" VerticalAlign="Middle" 
                Wrap="False" />
            <ItemStyle BorderStyle="Solid" Height="100%" HorizontalAlign="Left" 
                VerticalAlign="Middle" Width="100%" Wrap="False" />
            </asp:BoundField>
        </Fields>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#3B5998" BorderStyle="Solid" Font-Bold="True" 
            ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="White" BorderStyle="Solid" BorderWidth="1px" 
            ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Middle" />
    </asp:DetailsView>
    <asp:LinqDataSource ID="LinqDataSourceTaiKhoan" runat="server" 
        ContextTypeName="ThuChi.DCThuChiDataContext" EntityTypeName="" 
        TableName="TaiKhoans" Where="MaTaiKhoan == @MaTaiKhoan">
        <WhereParameters>
            <asp:SessionParameter DefaultValue="0" Name="MaTaiKhoan" 
                SessionField="MaTaiKhoan" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>
</asp:Content>
